listitemmanager: Switch from "insert_before" to "insert_after" argumnet
authorBenjamin Otte <otte@redhat.com>
Fri, 28 Sep 2018 00:05:46 +0000 (02:05 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 30 May 2020 23:26:45 +0000 (19:26 -0400)
commitfbfc7dc6901dc724309e6b223a0a60667bab67ef
tree7cb52e53d59051bd3773de26905b48f36cb7596a
parentd8eec549f099d61d18971708c6eee6d69ad5b7a4
listitemmanager: Switch from "insert_before" to "insert_after" argumnet

We reorder widgets start to end, so when reusing a list item, we
correctly know the previous sibling for that list item, but not the
next sibling yet. We just know the widget it should ultimately be in
front of.
So we can do a more correct guess of the list item's place in the widget
tree if we think about where to place an item like this.

Actually using this change will come in the next commit.
gtk/gtklistitemmanager.c
gtk/gtklistitemmanagerprivate.h
gtk/gtklistview.c